﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>onEnterFrame</title>
<meta name="GENERATOR" content="WinCHM">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

</head>

<body>
<P><FONT face=Courier style="BACKGROUND-COLOR: #ffff00">////////////// 
MAIN PROGRAM CALLS</FONT></P>
<P><FONT 
face=Courier>SpawnEnemy();<BR><STRONG>Initialize</STRONG>();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
//gán các thuộc tính cho nhân vật chính của chúng ta<BR>rick_mc.swapDepths(60000);</FONT></P>
<P><FONT face=Courier></FONT>&nbsp;</P>
<P><BR><FONT face=Courier><STRONG>onEnterFrame</STRONG> = 
function()<BR>{</FONT></P>
<P><FONT 
face=Courier><BR>&nbsp;RenderEnemy();<BR>&nbsp;&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;if(!rick_mc.attack 
&amp;&amp; 
!rick_mc.jump)<BR>&nbsp;{<BR>&nbsp;&nbsp;Movement();<BR>&nbsp;}<BR>&nbsp;<BR>&nbsp;if(rick_mc.jump)<BR>&nbsp;&nbsp;Jump();&nbsp;&nbsp;&nbsp;<BR>&nbsp;<BR>&nbsp;if(rick_mc.attack)<BR>&nbsp;{<BR>&nbsp;&nbsp;Attack();<BR>&nbsp;}<BR>&nbsp;&nbsp;<BR>&nbsp;<BR>&nbsp;&nbsp;<BR>&nbsp;if 
(Key.isDown (Key.CONTROL))<BR>&nbsp;{<BR>&nbsp;&nbsp;keydown=true;<BR>&nbsp;} 
<BR>&nbsp;else keydown=false;</FONT></P>
<P><FONT face=Courier><BR>&nbsp;</FONT></P>
<P><FONT face=Courier></FONT>&nbsp;</P>
<P><BR><FONT 
face=Courier>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;if(rick_mc.stance==0)<BR>&nbsp;&nbsp;rick_mc._xscale 
= -100;<BR>&nbsp;else<BR>&nbsp;&nbsp;rick_mc._xscale = 
100;<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>}</FONT></P></body>
</html>
